﻿using Mapster;
using RsCms.Application.Promote.Dto;
using RsCms.Core;
using RsCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RsCms.Application.Promote
{
	public class PromoteAppService:IPromoteAppService
	{
		IPromoteDomainService promoteDomainService;
		 public PromoteAppService(IPromoteDomainService promoteDomainService) 
		{ 
			this.promoteDomainService = promoteDomainService;
		}

		public async Task<PageData<PromoteInfoDto>> PagePromoteInfoAsync(int page,int pageSize)
		{
			var info=await promoteDomainService.PagePromoteInfoAsync(page, pageSize);
			return info.Adapt<PageData<PromoteInfoDto>>();
		}
	}
}
